package com.buba.personnel.service.impl;

import com.buba.personnel.dao.OrganizationDao;
import com.buba.personnel.service.OrganizationService;
import com.buba.pojo.Organization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrganizationServiceImpl implements OrganizationService {
    @Autowired
    private OrganizationDao organizationDao;

    @Override
    public List<Organization> selOrganization(Map<String, Object> paramMap) {
        return organizationDao.selOrganization(paramMap);
    }

    @Override
    public long delOrganization(Integer id) {
        return organizationDao.delOrganization(id);
    }

    /**
     * 天机机构
     *
     * @param organization
     * @return
     */
    @Override
    public long addOrganization(Organization organization) {
        return organizationDao.addOrganization(organization);
    }

    /**
     * 修改
     *
     * @param organization
     * @return
     */
    @Override
    public long updOrganization(Organization organization) {
        return organizationDao.updOrganization(organization);
    }
}
